﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace helloworld2.MODEL
{
    class Node
    {
        public int id { get; set; }
        public double length { get; set; }
        List<Node> connections = new List<Node>();
        public double currentCost { get; set; }
        public Node previousNode { get; set; }

        public Node(int id, double length)
        {
            this.id = id;
            this.length = length;
            this.currentCost = this.length;
        }

        public Node()
        {

        }

        public void addConnection(Node n)
        {
            connections.Add(n);
        }

        public List<Node> getConnection()
        {
            return this.connections;
        }

      
    }
}
